package com.zaoqi.repository;

import com.zaoqi.pojo.Device;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface DeviceRepository extends JpaRepository<Device, String> {
    List<Device> findBySerialNumberIn(List<String> serialNumbers);
    // 根据 serialNumber 查找设备
    Optional<Device> findBySerialNumber(String serialNumber);
}
